package com.gt.wxpay.cashier.merchantNew.application.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gt.wxpay.cashier.merchantNew.application.MerchantService;
import com.gt.wxpay.cashier.merchantNew.domain.model.Merchant;
import com.gt.wxpay.cashier.merchantNew.infra.persistent.MerchantMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
* 商户*
*/
@Service
public class MerchantServiceImpl extends ServiceImpl<MerchantMapper, Merchant> implements MerchantService {


    @Autowired
    private MerchantMapper merchantMapper;
    /**
    * @param merchant
    */
    public void afterSave(Merchant merchant) {
    }

    /**
    * @param merchant
    */
    public void afterUpdate(Merchant merchant) {
    }

    @Override
    public Long getMaxMid() {
        return merchantMapper.getMaxMid();
    }

    @Override
    public Merchant getThatMerchantNo(String merchantNo) {
        return merchantMapper.getThatMerchantNo(merchantNo);
    }
}
